// Decompiled by Jad v1.5.8e2. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://kpdus.tripod.com/jad.html
// Decompiler options: packimports(3) fieldsfirst ansi space 
// Source File Name:   DuelBoardBtn.java

package com.tool.btn;

import java.awt.event.MouseEvent;
import org.come.Frame.DuelBoardJframe;
import org.come.Jpanel.DuelBoardJpanel;
import org.come.until.CutButtonImage;
import org.come.until.ScrenceUntil;

// Referenced classes of package com.tool.btn:
//			MoBanBtn

public class DuelBoardBtn extends MoBanBtn
{

	private int caozuo;
	private DuelBoardJpanel duelBoardJpanel;

	public DuelBoardBtn(String iconpath, int type, String text, int caozuo, DuelBoardJpanel duelBoardJpanel)
	{
		super(iconpath, type);
		this.caozuo = caozuo;
		this.duelBoardJpanel = duelBoardJpanel;
	}

	@Override
    public void chooseyes()
	{
	}

	@Override
    public void chooseno()
	{
	}

	@Override
    public void nochoose(MouseEvent e)
	{
		if (caozuo == 1) {
            try
            {
                if (duelBoardJpanel.isShowType())
                {
                    duelBoardJpanel.getDuelBoardJframe().setBounds(ScrenceUntil.Screen_x - 18, 215, 18, 18);
                    duelBoardJpanel.getShowBtn().setBounds(0, 0, 18, 18);
                    duelBoardJpanel.getShowBtn().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/34_png.button.xy_vscroll$down.png"));
                } else
                {
                    duelBoardJpanel.getDuelBoardJframe().setBounds(ScrenceUntil.Screen_x - 210, 215, 210, 188);
                    duelBoardJpanel.getShowBtn().setBounds(191, 0, 18, 18);
                    duelBoardJpanel.getShowBtn().setIcons(CutButtonImage.cuts("inkImg/hongmu/2/29_png.button.btn_8.png"));
                }
                duelBoardJpanel.setShowType(!duelBoardJpanel.isShowType());
            }
            catch (Exception e1)
            {
                e1.printStackTrace();
            }
        }
	}
}
